(function (draftWidth, n) {
  function getRem() {
    let html = document.querySelector("html");
    let w = document.body.clientWidth || document.documentElement.clientWidth;
    let rem = (w / draftWidth) * n;
    html.style.fontSize = rem + "px";
  }
  getRem();
  window.addEventListener("resize", function () {
    getRem();
  });
})(100, 1);
